package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;
import com.youi.util.ObjectUtil;

import java.io.Serializable;


/**
 * 云享代付流水
 * @author XJY
 */
public class Sharecloudrecord implements Serializable {

	private Long id;							//id
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;						//最后修改时间
	private String code;						//返回码
	private String message;						//返回码描述
	private Integer batchStatus;				//批次状态 1-成功 2-失败 7-部分失败 10-订单超时 其他状态-处理中
	private String custBatchNo;					//商户批次号	
	private String platBatchNo;					//平台批次号
	private String orderNo;						//提现单号
	private String recvType;					//付款账户类型:银行(BANK) 支付宝(ALIPAY) 易宝钱包 (YPWLT)
	private Double batchAmt;					//付款金额
	private Double batchServFeeAmt;			    //服务费金额
	private Double totalDeduction;			    //总扣款金额
	private String failList;				    //失败明细

    public Sharecloudrecord(){

    }

    public Sharecloudrecord(String orderNo,Long id) {       
       this.gmtCreated=new Date();
       this.delStatus=DelStatus.NODEL;
       this.gmtModify=gmtCreated;
       String custBatchNo=ObjectUtil.getOrderNo(5, id.toString());
       this.custBatchNo=custBatchNo;
       this.orderNo=orderNo;       
    }


    public Sharecloudrecord(Long id,Date gmtCreated,Integer delStatus,Date gmtModify,Integer batchStatus,String custBatchNo,String platBatchNo,String recvType,Double batchAmt,Double batchServFeeAmt,Double totalDeduction,String failList) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
       this.batchStatus=batchStatus;
       this.custBatchNo=custBatchNo;
       this.platBatchNo=platBatchNo;
       this.recvType=recvType;
       this.batchAmt=batchAmt;
       this.batchServFeeAmt=batchServFeeAmt;
       this.totalDeduction=totalDeduction;
       this.failList=failList;
    }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setBatchStatus(Integer batchStatus){
		this.batchStatus=batchStatus;
	}

	public Integer getBatchStatus(){
		return batchStatus;
	}

	public void setCustBatchNo(String custBatchNo){
		this.custBatchNo=custBatchNo;
	}

	public String getCustBatchNo(){
		return custBatchNo;
	}

	public void setPlatBatchNo(String platBatchNo){
		this.platBatchNo=platBatchNo;
	}

	public String getPlatBatchNo(){
		return platBatchNo;
	}

	public void setRecvType(String recvType){
		this.recvType=recvType;
	}

	public String getRecvType(){
		return recvType;
	}

	public void setBatchAmt(Double batchAmt){
		this.batchAmt=batchAmt;
	}

	public Double getBatchAmt(){
		return batchAmt;
	}

	public void setBatchServFeeAmt(Double batchServFeeAmt){
		this.batchServFeeAmt=batchServFeeAmt;
	}

	public Double getBatchServFeeAmt(){
		return batchServFeeAmt;
	}

	public void setTotalDeduction(Double totalDeduction){
		this.totalDeduction=totalDeduction;
	}

	public Double getTotalDeduction(){
		return totalDeduction;
	}

	public void setFailList(String failList){
		this.failList=failList;
	}

	public String getFailList(){
		return failList;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
